#!/bin/bash

label=auth
kubectl delete pod -n business -l app=${label} --grace-period=0 
kubectl get pod -n business -l app=${label} -ojson | grep -o '"name": *"[^"]*"' | cut -d '"' -f 4 | head -n 1

kubectl get pod -n business -l app=${label}

kubectl logs -f -n business -l app=${label}

